package beans;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name="ItemsStock")
public class ItemStockBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue
	private int idItemStock;
	
	@OneToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="idLote")
	private LoteBean lote;
	
	@Column(name="cantidad")
	private float cantidad;
	
	public LoteBean getLote() {
		return lote;
	}
	public void setLote(LoteBean lote) {
		this.lote = lote;
	}
	public float getCantidad() {
		return cantidad;
	}
	public void setCantidad(float cantidad) {
		this.cantidad = cantidad;
	}
	public int getIdItemStock() {
		return idItemStock;
	}
	public void setIdItemStock(int idItemStock) {
		this.idItemStock = idItemStock;
	}
	
	
}
